 <?php
              $g = mysql_query("SELECT * FROM gallery Order by rand() DESC LIMIT 7");
              
             
             while ($w = mysql_fetch_array($g)) {
			 $ket = htmlentities(strip_tags($w['keterangan']));

              
                echo "</a><a href='img_galeri/$w[gbr_gallery]' title='$ket' class='lightbox'>
                      <img height='75px' src='img_galeri/kecil_$w[gbr_gallery]' alt='$ket' /></a>";
             }
?>